<!-- 1903010328 查询通行证 -->
<?php
include "../../inc/log/adsession.php";
// include "../../inc/data/connAdmin.php";
?>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<?php
		// 获取
	include "../../inc/data/connAdmin.php";
		$taskId=$_GET["taskid"];
		//执行删除
		$sql = "delete from mamx_task where taskid=?";
		$stmt=$conn->prepare($sql);
		$stmt->bind_param("i",$taskId);
		$stmt->execute();
		$stmt->store_result();
		$stmt->fetch();
		if ($stmt->affected_rows==1) {
			echo<<<END
			<script type="text/javascript">
			alert("教学任务删除成功！");
			history.back();
			</script>
END;
		}
	?>
</body>
</html>